﻿<%@ include file="../include/top.jsp" %>
<%@ include file="../include/errorArea.jsp" %>


<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" style="margin-top:10px;">
            <tr>
              <td colspan="2" align="left" valign="middle" class="text_gray2">
              
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#96bee2">
                  <tr>
                    <td height="21" background="${baseURL}/images/table_bg.jpg">&nbsp;&nbsp;<span class="text_blue_b">
                    <c:if test="${empty formdata.id || formdata.id==0}"><img src="${baseURL}/images/bit_add.png" width="16" height="14" border="0" align="absmiddle" />
添加供货商</c:if> 
	  <c:if test="${not empty formdata.id && formdata.id>0}">
<img src="${baseURL}/images/bit_edit.png" width="16" height="14" border="0" align="absmiddle" /> 编辑供货商</c:if></span></td>
                  </tr>
                  <tr>
                    <td height="13" align="center" valign="top" bgcolor="#FFFFFF">
					<form name="myForm" method="POST" action="${baseURL}/supplier/saveSupplier">
					<input type="hidden" name="id" value="${formdata.id}" />
<table width="100%" border="0" align="center" id="listTable" bgcolor="#FFFFFF" cellpadding="1" cellspacing="0">
	<tr style="display:none">
	  <td colspan="2" height="0" >
	  </td>
    </tr>
    <tr>
		<td align="right">供货商ID：</td>
		<td align="left">${formdata.id}</td>
	</tr>
    <tr>
		<td align="right">供货商编码：</td>
		<td align="left"><input name="supplierCode" type="text" id="supplierCode"
			value="${formdata.supplierCode}" size="25" maxlength="50" class="myInput"/></td>
	</tr>
	<tr>
		<td align="right"><span class="mustInput">*</span>供货商名称 ：</td>
		<td align="left"><input name="supplierName" type="text" id="supplierName"
			value="${formdata.supplierName}" size="70" maxlength="50" class="myInput"/></td>
    </tr>
    <tr>
		<td align="right">负责人：</td>
		<td align="left"><input name="director" type="text" id="director"
			value="${formdata.director}" size="70" maxlength="30" class="myInput"/></td>
	</tr>
	<tr>
		<td align="right">负责人电话：</td>
		<td align="left"><input name="directorPhone" type="text" id="directorPhone"
			value="${formdata.directorPhone}" size="70" maxlength="30" class="myInput"/></td>
	</tr>
	<tr>
		<td align="right">联系人：</td>
		<td align="left"><input name="contact" type="text" id="contact"
			value="${formdata.contact}" size="70" maxlength="30" class="myInput"/></td>
	</tr>
	<tr>
		<td align="right">联系人电话：</td>
		<td align="left"><input name="contactPhone" type="text" id="contactPhone"
			value="${formdata.contactPhone}" size="70" maxlength="30" class="myInput"/></td>
	</tr>
	<tr>
		<td align="right">传真：</td>
		<td align="left"><input name="faxNumber" type="text" id="faxNumber"
			value="${formdata.faxNumber}" size="70" maxlength="30" class="myInput"/></td>
	</tr>
	<tr>
		<td align="right">地址：</td>
		<td align="left"><input name="address" type="text" id="address"
			value="${formdata.address}" size="70" maxlength="100" class="myInput"/></td>
	</tr>
	<tr>
		<td align="right">区域：</td>
		<td align="left"><input name="areaId" type="text" id="areaId"
			value="${formdata.areaId}" size="70" maxlength="30" class="myInput"/></td>
	</tr>
	<tr>
		<td align="right">街道：</td>
		<td align="left"><input name="street" type="text" id="street"
			value="${formdata.street}" size="70" maxlength="30" class="myInput"/></td>
	</tr>
	<tr>
		<td align="right">邮编：</td>
		<td align="left"><input name="postCode" type="text" id="postCode"
			value="${formdata.postCode}" size="70" maxlength="10" class="myInput"/></td>
	</tr>
	<tr>
		<td align="right">等级：</td>
		<td align="left">
			<select name="grade" id="grade" class="myInput">
			<option value="0">0</option>
			<c:forEach var="i" begin="1" end="10">
				<option value="${i}">${i}</option>
			</c:forEach>
			</select>
		</td>
	</tr>
	<tr> 
      <td align="right">备注： </td>
      <td><textarea name="remark" cols="50" rows="5" class="myInput" id="remark">${formdata.remark}</textarea></td>
    </tr>
	<tr>
	  <td colspan="2" align="center">
	  	<input name="submit" type="submit" value="提交" class="myButton" />
	    &nbsp;&nbsp;
        <input name="button" type="button"
			onclick="history.go(-1)" value="返回" class="myButton"/></td>
    </tr>
	<tr>
	  <td colspan="4" align="center">&nbsp;</td>
    </tr>
</table>
</form></td>
                  </tr>
              </table></td>
            </tr>
</table>
<script>
$("#grade").val("${formdata.grade}");
</script>
<%@ include file="../include/bottom.jsp" %>